public class TTT {

    public static void main(String[] args) {
        System.out.println((Runtime.getRuntime().availableProcessors() + 1) / 2);
    }
}
